{extend name="common/base"/}
<!-- 主体 -->
{block name="body"}
	<form class="layui-form p-4">
		<h3 class="pb-3">新建提现</h3>
		<table class="layui-table layui-table-form">
			<tr><td class="layui-td-gray-2">用户ID<font>*</font></td>
			<td><input type="text" name="uid"  lay-verify="required" lay-reqText="请完善用户ID" value="" autocomplete="off" placeholder="请输入用户ID" class="layui-input"></td><td class="layui-td-gray-2">提现金额<font>*</font></td>
			<td><input type="text" name="money"  lay-verify="required" lay-reqText="请完善提现金额" value="" autocomplete="off" placeholder="请输入提现金额" class="layui-input"></td><td class="layui-td-gray-2">提现方式:1微信,2支付宝,3银行卡<font>*</font></td>
			<td><input type="text" name="type"  lay-verify="required" lay-reqText="请完善提现方式:1微信,2支付宝,3银行卡" value="" autocomplete="off" placeholder="请输入提现方式:1微信,2支付宝,3银行卡" class="layui-input"></td>
		</tr>
				<tr><td class="layui-td-gray-2">微信收款码<font>*</font></td>
			<td><input type="text" name="wx_img"  lay-verify="required" lay-reqText="请完善微信收款码" value="" autocomplete="off" placeholder="请输入微信收款码" class="layui-input"></td><td class="layui-td-gray-2">支付宝收款码<font>*</font></td>
			<td><input type="text" name="zfb_img"  lay-verify="required" lay-reqText="请完善支付宝收款码" value="" autocomplete="off" placeholder="请输入支付宝收款码" class="layui-input"></td><td class="layui-td-gray-2">真实姓名<font>*</font></td>
			<td><input type="text" name="real_name"  lay-verify="required" lay-reqText="请完善真实姓名" value="" autocomplete="off" placeholder="请输入真实姓名" class="layui-input"></td>
		</tr>
				<tr><td class="layui-td-gray-2">身份证号<font>*</font></td>
			<td><input type="text" name="card_number"  lay-verify="required" lay-reqText="请完善身份证号" value="" autocomplete="off" placeholder="请输入身份证号" class="layui-input"></td><td class="layui-td-gray-2">银行卡号<font>*</font></td>
			<td><input type="text" name="bank_account"  lay-verify="required" lay-reqText="请完善银行卡号" value="" autocomplete="off" placeholder="请输入银行卡号" class="layui-input"></td><td class="layui-td-gray-2">开户行<font>*</font></td>
			<td><input type="text" name="bank_name"  lay-verify="required" lay-reqText="请完善开户行" value="" autocomplete="off" placeholder="请输入开户行" class="layui-input"></td>
		</tr>
				<tr><td class="layui-td-gray-2">手机号<font>*</font></td>
			<td><input type="text" name="mobile"  lay-verify="required" lay-reqText="请完善手机号" value="" autocomplete="off" placeholder="请输入手机号" class="layui-input"></td><td class="layui-td-gray-2">备注<font>*</font></td>
			<td><input type="text" name="remark"  lay-verify="required" lay-reqText="请完善备注" value="" autocomplete="off" placeholder="请输入备注" class="layui-input"></td><td class="layui-td-gray-2">提现状态:1申请中,2已通过,3已拒绝<font>*</font></td>
			<td><input type="text" name="status"  lay-verify="required" lay-reqText="请完善提现状态:1申请中,2已通过,3已拒绝" value="" autocomplete="off" placeholder="请输入提现状态:1申请中,2已通过,3已拒绝" class="layui-input"></td>
		</tr>
				<tr><td class="layui-td-gray-2">拒绝理由<font>*</font></td>
			<td><input type="text" name="refuse"  lay-verify="required" lay-reqText="请完善拒绝理由" value="" autocomplete="off" placeholder="请输入拒绝理由" class="layui-input"></td><td class="layui-td-gray-2">添加时间<font>*</font></td>
			<td><input type="text" name="create_time"  lay-verify="required" lay-reqText="请完善添加时间" value="" autocomplete="off" placeholder="请输入添加时间" class="layui-input"></td><td class="layui-td-gray-2">更新时间<font>*</font></td>
			<td><input type="text" name="update_time"  lay-verify="required" lay-reqText="请完善更新时间" value="" autocomplete="off" placeholder="请输入更新时间" class="layui-input"></td>
		</tr>
				<tr><td class="layui-td-gray-2">手续费率<font>*</font></td>
			<td><input type="text" name="rate"  lay-verify="required" lay-reqText="请完善手续费率" value="" autocomplete="off" placeholder="请输入手续费率" class="layui-input"></td><td class="layui-td-gray-2">到账金额<font>*</font></td>
			<td><input type="text" name="dz_money"  lay-verify="required" lay-reqText="请完善到账金额" value="" autocomplete="off" placeholder="请输入到账金额" class="layui-input"></td><td class="layui-td-gray-2">类型:1佣金提现 2余额提现<font>*</font></td>
			<td><input type="text" name="tx_type"  lay-verify="required" lay-reqText="请完善类型:1佣金提现 2余额提现" value="" autocomplete="off" placeholder="请输入类型:1佣金提现 2余额提现" class="layui-input"></td>
		</tr>
				
		</table>
		<div class="pt-3">
			<input type="hidden" name="id" value="0"/>
			<button class="layui-btn layui-btn-normal" lay-submit="" lay-filter="webform">立即提交</button>
			<button type="reset" class="layui-btn layui-btn-primary">重置</button>
		</div>
	</form>
{/block}
<!-- /主体 -->

<!-- 脚本 -->
{block name="script"}
	<script>
		var moduleInit = ['tool'];

			function gouguInit() {
			var form = layui.form, tool = layui.tool;
			var layer = layui.layer;
			var element = layui.element;
			
			
			
			//监听提交
			form.on('submit(webform)', function (data) {
			
			let callback = function (e) {
			layer.msg(e.msg);
			if (e.code == 0) {
			tool.sideClose(1000);
		}
		}
			tool.post("/admin/withdraw/add", data.field, callback);
			return false;
		});
		}

	</script>
{/block}
<!-- /脚本 -->